<html>
<head>
<TITLE>Internal System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>

</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="1000" cellspacing="1" cellpadding="4">
  <tr bgcolor="#E4E4E4"> 
    <td width="50">ID</td>
    <td width="100">Categories</td>
    <td width="200">Name</td>
    <td width="120">Modified Time</td>
    <td width="50">Recommend</td>
    <td width="50">Status</td>
    <td >Operation | <b><a href="listContentGroup_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
  </tr>
  {foreach item=data from=$arrDataList}
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td>{$data->id}</td>
    <td>{$data->catName}</td>
    <td title="{$data->name}">{$data->name|truncate:15:"..."}</td>
    <td>{$data->modifiedTime}</td>
    <td>
    	{if $data->recommend == 1}
    		Yes
    	{else}
    		No
    	{/if}
    </td>
    <td>
    	{if $data->status == 1}
    		Online
    	{else}
    		<font color="#FF0000">Offline</font>
    	{/if}
    </td>
    <td>
    {assign var="isNotFirst" value="yes"}
    {section name=opItem loop=$arrOperateInfo}
   		{if $arrOperateInfo[opItem].viewName != 'Add'}
    		{if $smarty.section.opItem.index != 0 && $isNotFirst == 'no'}
	    		&nbsp;&nbsp;|&nbsp;&nbsp;
    	    {/if}
			{assign var="isNotFirst" value="no"}

   		<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data->id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
   		{/if}
    {/section}
    &nbsp;&nbsp;|&nbsp;&nbsp;
    <a href="listContent_Images.php?menuGid={$menuGid}&menuid={$menuid}&id={$data->id}">Images</a>
    </td>
  </tr>
  {/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
  <tr> 
    <td align="left" width="80%">{$PAGE_BAR}</td>
    <td align="center" width="20%"></td>
  </tr>
</table>
</body>
</html>